//
//  Copyright (C) 2005 Mohamed Louizi
//  Copyright (C) 2006,2007 Christoph Sommer <christoph.sommer@informatik.uni-erlangen.de>
//
//  This program is free software; you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation; either version 2 of the License, or
//  (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
//
//  You should have received a copy of the GNU General Public License
//  along with this program; if not, write to the Free Software
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
//

package inet.networklayer.manetrouting;
import inet.networklayer.manetrouting.BaseRouting;
simple DYMO extends BaseRouting
{
    parameters:
        @class(DYMO);
        bool coreDebug = default(false); // debug switch for the core framework

        int RESPONSIBLE_ADDRESSES_PREFIX = default(-1); // netmask of network this DYMO router is responsible for, -1 for self only
//        string DYMO_INTERFACES = default("wlan"); // list of interfaces to run DYMO on, separated by a single space character
//        string AUTOASSIGN_ADDRESS_BASE = default("10.0.0.0"); // start of address range from which to automatically assign an address to the DYMO_INTERFACES
        double ROUTE_AGE_MIN_TIMEOUT @unit("s") = default(1s);
        double ROUTE_AGE_MAX_TIMEOUT @unit("s") = default(60s);
        double ROUTE_NEW_TIMEOUT @unit("s") = default(5s);
        double ROUTE_USED_TIMEOUT @unit("s") = default(5s);
        double ROUTE_DELETE_TIMEOUT @unit("s") = default(10s);
        int MIN_HOPLIMIT = default(5); // RREQs are first tried with this MsgHdr.HopLimit
        int MAX_HOPLIMIT = default(10); // MsgHdr.HopLimit for last RREQ, as well as other DYMO control messages
        double RREQ_RATE_LIMIT = default(10); // maximum average RREQs per second (token bucket)
        int RREQ_BURST_LIMIT = default(3); // maximum RREQs in a burst (token bucket)
        double RREQ_WAIT_TIME @unit("s") = default(2s);
        int RREQ_TRIES = default(3);
        int BUFFER_SIZE_PACKETS = default(50); // maximum queue size in packets, -1 for no limit
        int BUFFER_SIZE_BYTES @unit("B") = default(75000B); // maximum queue size in bytes, -1 for no limit
    gates:
        input from_ip;
        output to_ip;
}

